package com.atguigu.gmall.order.client;

import com.atguigu.gmall.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @author: 李旭
 * @create: 2021-09-10 15:15
 **/
@FeignClient(name = "service-order")
public interface OrderInfoFeignClient {

    //去结算页面所需要的数据
    @GetMapping("/api/order/getTradeData")
    public Map getTradeData();

    //根据订单的ID　查询订单对象
    @GetMapping("/api/order/getOrderInfo/{orderId}")
    public OrderInfo getOrderInfo(@PathVariable Long orderId);
}
